<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template('content', 'header'); ?>

<div class="content w980">
    <div class="goods-order">
        <h2>订单信息：</h2>
        <table>
            <tr class="table-th">
                <th>订单号</th>
                <th>支付</th>
                <th>状态</th>
                <th>数量</th>
                <th>总价</th>
                <th>操作</th>
            </tr>
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"goods\" data=\"op=goods&tag_md5=012af985125169702c35316c4192b857&action=order&on=%24order_on&qq=%24accept_qq\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$goods_tag = pc_base::load_app_class("goods_tag", "goods");if (method_exists($goods_tag, 'order')) {$data = $goods_tag->order(array('on'=>$order_on,'qq'=>$accept_qq,'limit'=>'20',));}?>
            <?php $n=1;if(is_array($data)) foreach($data AS $val) { ?>
            <tr>
                <td align="center"><?php echo $val['order_on'];?></td>
                <td align="center"><?php echo $val['price'];?>元</td>
                <td align="center"><?php if($val['is_pay'] == 2) { ?> 完成 <?php } else { ?> 未支付 <?php } ?></td>
                <td align="center"><?php echo $val['number'];?></td>
                <td align="center"><?php echo $val['price'];?>元</td>
                <td align="center"><a href="<?php echo APP_PATH;?>index.php?m=goods&c=index&a=down&id=<?php echo $val['id'];?>">下载号码</a></td>
            </tr>
            <?php $n++;}unset($n); ?>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </table>
    </div>
</div>
<?php include template('content', 'footer'); ?>